<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/regist.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script src="/js/plugins/js-cookie/js.cookie.min.js"></script>
    <script src="/js/vue/md5.js"></script>
    <script type="text/javascript" src="/js/vue/common.js"></script>
    <script type="text/javascript" src="/js/system/regist.js"></script>

</head>
<body>
<script>
    $(function () {
        /*ajaxGet("/currentUser", {}, function (data) {
            console.log(data);
        })*/

       /* ajaxGet("/travel/info", {}, function (data) {
            console.log(data, 1);
        })

        ajaxGet("/travel/userUpdate", {}, function (data) {
            console.log(data, 2);
        })
*/

        ajaxGet("/test1", {aa:1, bb:2, cc:3}, function (data) {
            console.log(data, 2);
        })


        /*设置请求头
        $.ajax({
            url:domainUrl + "users/currentUser",
            type:"GET",
            data:{},
            //请求发起前
            //xhr是ajax对象
            beforeSend:function (xhr) {
                xhr.setRequestHeader("token",token);
            }
        })*/

        //封装后的设置请求头的方法
        ajaxGet("users/currentUser",{},function (data) {
        })
    })

</script>



</body>
</html>